package com.qihang.core.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Table(name="menu")
@Entity
public class MenuEntity {
	
	
	private int menuId;
	private String menuName;
	
	private String describes;
	
	private int sort;

	private int pageNo;
	@Transient
	private int pagerStart;
	
	@Column(name = "menuName")
	private String imgurl;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "menuId", nullable = false, length = 9)
	public int getMenuId() {
		return menuId;
	}

	public void setMenuId(int menuId) {
		this.menuId = menuId;
	}

	@Column(name = "menuName", nullable = false, length = 20)
	public String getMenuName() {
		return menuName;
	}

	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}

	@Column(name = "describes", nullable = false, length = 20)
	public String getDescribes() {
		return describes;
	}

	public void setDescribes(String describes) {
		this.describes = describes;
	}

	@Column(name = "sort", nullable = false, length = 20)
	public int getSort() {
		return sort;
	}

	public void setSort(int sort) {
		this.sort = sort;
	}

	@Transient
	public int getPageNo() {
		return pageNo;
	}

	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}
	

	public String getImgurl() {
		return imgurl;
	}

	public void setImgurl(String imgurl) {
		this.imgurl = imgurl;
	}
	

	public int getPagerStart() {
		return pagerStart;
	}

	public void setPagerStart(int pagerStart) {
		this.pagerStart = pagerStart;
	}

	@Override
	public String toString() {
		return "MenuEntity [menuId=" + menuId + ", menuName=" + menuName
				+ ", describes=" + describes + ", sort=" + sort + ", pageNo="
				+ pageNo + ", imgurl=" + imgurl + "]";
	}

	

}
